/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file FormSessionInfo.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 24. 12. 2011
 */

#ifndef FORMSESSIONINFO_H_
#define FORMSESSIONINFO_H_

#include <FBase.h>
#include <FUi.h>

#include "models/SCSession.h"

using namespace Osp::Base;
using namespace Osp::Ui::Controls;


class FormSessionInfo :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FormSessionInfo();
	virtual ~FormSessionInfo();

// Constants
	static const int IDA_SESSION_INFO_BACK 	= 200;
// Attributes
	ScrollPanel* pScrollPanel;
	EditField* pStartEF;
	EditField* pEndEF;
	EditField* pStopEF;
	EditField* pQualityEF;
	EditField* pSamplesEF;
	SCSession *pSession;
// Methods
public:
	bool Initialize(void);
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	void SetDefaultValues();
	void SetSession(SCSession* pSession);
	SCSession* GetSession();
	void Update();
	void Redraw();
	int GetFormId();
};

#endif /* FORMSESSIONINFO_H_ */
